class circle {
    draw(){
        console.log('绘制一个圆')
    }
}
//定义装饰类
class decorator {
   constructor(circle){
       this.circle = circle
   }
   //装饰类中对方法装饰
    draw(){
        this.circle.draw()
        this.setRedBorder(circle)
    }
    setRedBorder(circle){
       console.log("设置红色边框")
    }
}

export default {
    circle,
    decorator
}
